-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating and utilising a custom system image of Julia with RMS #2381
Conversation
Rebasing with fixed CI |
96a4038
to
35b193d
Compare
@calvinp0 please could you update the description at the top of this pull request explaining the motivation, some background, and how this helps? Many of us (well, me at least!) are not as familiar with Julia (and PyJulia) and are trying to learn. Thanks. Also, I note that the environment file currently in this PR still installs |
Sure, I will write a better description later tonight. I am not super familiar with Julia (never written Julia code) or PyJulia but I have become quite adept at debugging it over the last couple of months when errors occur. Also, yes the environment file was out of date. I have rebased the branch with main. Furthermore, even though this looks for the system image created, I have a feeling we will need to make changes to pyrms too. I will have to double check that. @mjohnson541 you are a bit more familiar with that package, does the code do the following: from julia.api import Julia
jl = Julia(compiled_modules=False) |
Thanks. I have been trying to follow along with the instructions (or some form of them). On an intel mac, with a conda environment containing (among other things)
I get (buried in a big error message)
during the |
I don't have access to an intel mac but I could try on my M1 using Rosetta and see what happens. I assume you have already done the following command:
If so, was it recent? Because usually when I get Julia errors like this, I would rebuild rmg_env from scratch (although not delete the RMG-Py folder) and then re-run those two commands. If you are getting the same error, I can see if I can find an image of MacOS and install it on a virtual machine |
I was going to suggest we rebase this once #2415 is merged. But I see you just closed it? |
Checking chapter 5 of the pyJulia documentation suggests it might avoid the need to use
So it sounds to me like if we do a custom system image we don't need to use python-jl. The apparent time-to-launch benefit is attractive too. |
Overview
In this pull request, I made several updates to PyJulia and the RMG website's instructions for running the system image create command. These changes include:
python -m julia.sysimage rms.so
to create a customized system imageBenefits of Customized System Image
Creating a customized system image has several benefits, including:
Limitations of Customized System Image
There are also some limitations to using a customized system image, including: